<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<script type="text/JavaScript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js"></script>  
<!-- <script type="text/javascript">       
    //<![CDATA[     
       /*  ServletContext sc = (ServletContext)FacesContext.
        getCurrentInstance().getExternalContext().getContext();  */
               
        CKEDITOR.replace('content',{toolbar:'Full', skin : 'kama',
        	});     
  //]]>       
    </script>  -->  
   
<title>USE CKEDITOR</title>  
</head>  
<body>  
<form action="editArticle.action" method="post">
  <input type="text" name="subject"  style="width:800px; height:60px; font-size:22px; text-align:center"  value="${articleLast.subject}"/><br/>  
<input type="text" name="sender"  value="${articleLast.sender}"/>
<input type="text" name="time"  value="${articleLast.time}"/> <br /> 
    <textarea class="ckeditor" cols="80" id="content" name="content" rows="10" >     
  ${articleLast.content}
     </textarea>    
     <br>
 <!--     <button type = "submit"> 写完啦 </button> -->
     <input type="submit" value="Save " style="color: white; background-color: blue" />
     </form>
</body>  

<!-- <script type = "text/javascript">
      function test() {    
          var editor_data = CKEDITOR.instances.content.getData();    
          if(editor_data==null || editor_data==""){    
              alert("请填写内容！");    
              return false;    
          }    
      } 
</script> -->

</html>  
